package com.example.demo.controller;

import com.example.demo.mapper.BookInfoMapper;
import com.example.demo.service.BookService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/book")


public class BookController {
    @Autowired
    public BookService bookService;
    @RequestMapping("login")
    public String insert(String book_name,String book_author){
        bookService.insert(book_name,book_author);
        log.info("书籍登录成功");
        return "书籍界面登录成功";
    }
}
